<?php
namespace API\Controller;
use Think\Controller;
class ClubserviceController extends Controller {
  public function clubbyid(){
    	$cid=$_GET['club_id'];
    	$clubModel=M('club_info'); //实例化模型对象
	   	$club=$clubModel->where("club_id='$cid'")->select(); //
   echo json_encode($club);

    }
      public function clublist(){
    	$clubModel=M('club_info'); //实例化模型对象
	   	$club=$clubModel->field('club_id,club_name,club_picture,club_number')->select(); //查询
   echo json_encode($club);
    }
}
